package com.byedu.mail;

public class MailTest {

    public static void main(String[] args) throws Exception {

        // 插入邮件发送记录
        String[] contents = new String[5];
        contents[0] = "您有待处理项目，请登录系统处理";
        contents[1] = "富博思管理系统：http://jaad-app.cn/Focus/admin";
        contents[2] = "账号/密码：";
        contents[3] = "富博思管理系统（备份系统）：http://jco-app.cn/Focus/admin";
        contents[4] = "账号/密码：";
        MailSender mailSender = MailSender.getInstance();

        MailInfo mailInfo = mailSender.setMailInfo("robotl@focus-insight.com", "富博思绩效管理系统",
         contents, null);
        boolean flag = mailSender.sendHtmlMail(mailInfo, 3);
        if (flag) {

        } else {

        }
//        MailSender mailSender = MailSender.getInstance();
//        MailInfo mailInfo = mailSender.setMailInfo();
//        mailSender.sendHtmlMail(mailInfo, 3);
    }
}